package com.jinyu.dao.entity.sys;

import jakarta.validation.constraints.Pattern;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yangli
 * @Despriction:    字典类型模型
 * @Package: com.jinyu.dao.entity.sys
 * @Date:Created in 2022/5/7 12:46
 * @Modify By:
 */
public class SysDictType implements Serializable {

    @Serial
    private static final long serialVersionUID = -3035116473759637494L;

    /**
     *  字典类型主键
     */
    private Long id;


    /**
     *  字典名称
     */
    @Pattern(regexp = "^(?!_)(?!.*?_$)[0-9a-zA-Z_\\u4e00-\\u9fa5]{1,20}$",message = "字典名称必须是由汉字、英文、数字、下划线组成，且下划线不能在头部或者末尾")
    private String dictName;


    /**
     *  字典类型
     */
    @Pattern(regexp = "^(?!_)(?!.*?_$)[0-9a-zA-Z_]{1,20}$",message = "字典类型必须是由英文、数字、下划线组成，且下划线不能在头部或者末尾")
    private String dictType;


    /**
     *  状态（0正常 1停用）
     */
    private Integer status = 0;


    /**
     * 创建人
     */
    private String createUser;


    /**
     *  创建时间
     */
    private String createTime;


    /**
     *  修改人
     */
    private String updateUser;


    /**
     *  修改时间
     */
    private String updateTime;


    /**
     *  备注
     */
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
